package org.example.business.controller;

import org.example.business.service.BusinessService;
import org.example.business.vo.PlaceOrderVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/business")
@RestController
public class BusinessController {

    @Autowired
    private BusinessService businessService;

    @PostMapping("/placeOrder")
    public String placeOrder(@RequestBody PlaceOrderVo placeOrderVo) {
        businessService.placeOrder(placeOrderVo);
        return "ok";
    }
}
